package com.yantu.view.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("消息视图类")
public class MessageView {
    @ApiModelProperty(value = "消息id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "发送者用户ID")
    private Integer sendUserId;

    @ApiModelProperty(value = "发送者用户名")
    private String sendUserName;

    @ApiModelProperty(value = "发送者真实姓名")
    private String sendRealName;

    @ApiModelProperty(value = "接收人数")
    private Integer receiveUserCount;

    @ApiModelProperty(value = "已读人数")
    private Integer readCount;

    @ApiModelProperty(value = "接收者ID")
    private Integer receiveUserId;
}
